<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8"/>
<title>Insert title here</title>
</head>
<body>
<form th:attr="action=@{/reg}" action="@{/reg}" method="post" th:object="${user}">
	<input th:field="*{username}" type="email"/>
	<input th:field="*{password}" type="password"/>
	<input type="submit" value="提交" />
</form>
</body>
</html>